package com.flume.sample

import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.water.spout.WaveHelper
import com.water.spout.WaveView

class MainActivity : AppCompatActivity() {

    companion object {
        @JvmStatic
        fun jumpTo(context: Context) {
            context.startActivity(Intent(context, MainActivity::class.java))
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val waveView = findViewById<WaveView>(R.id.wave)
        waveView.isShowWave = true
        val mWaveHelper = WaveHelper(waveView)
        mWaveHelper.start()
    }
}